package org.pearl.springbootsecurity.demo.MP;

import org.pearl.springbootsecurity.demo.config.MybatisPlusConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;

/**
 * Created by TD on 2021/11/2
 */
/*
@Configuration
public class MpConfig {

    @Autowired
    IDataScopeProvider dataScopeProvider;

    @Order(Ordered.HIGHEST_PRECEDENCE)
    @Bean
    @ConditionalOnMissingBean
    @ConditionalOnBean(MybatisPlusConfig.class)
    public InterCepter mpmInterceptor() {
        return  new InterCepter(dataScopeProvider);
    }
}
*/
